package www.lagou.entity;

import java.io.Serializable;
import java.util.List;

/**
 * CREATE TABLE account (
 *  id int(11)  PRIMARY KEY AUTO_INCREMENT,
 *  username varchar(100) , -- 用户姓名
 *  card varchar(100) ,  -- 卡号
 *  balance double -- 当前余额
 * ) ;
 * @author cyt
 * @date 2020/7/12
 */
public class Account implements Serializable {
    private Integer id;

    private String username;

    private String card;

    public Account(Integer id, String username, String card, Double balance) {
        this.id = id;
        this.username = username;
        this.card = card;
        this.balance = balance;
    }

    public Account() {
    }

    private Double balance;

    private List<Transaction> transactions;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public List<Transaction> getTransactions() {
        return transactions;
    }

    public void setTransactions(List<Transaction> transactions) {
        this.transactions = transactions;
    }
}
